package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Ygxl generated by hbm2java
 */
@Entity
@Table(name = "ygxl")
public class Ygxl implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private Long bkys;
    private BigDecimal bkysbl;
    private String dz;
    private BigDecimal dzbl;
    private Long zz;
    private BigDecimal zzbl;
    private Long gzyx;
    private BigDecimal gzyxbl;

    public Ygxl()
    {
    }

    public Ygxl( Long id )
    {
        this.id = id;
    }

    public Ygxl( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 Long bkys,
                 BigDecimal bkysbl,
                 String dz,
                 BigDecimal dzbl,
                 Long zz,
                 BigDecimal zzbl,
                 Long gzyx,
                 BigDecimal gzyxbl)
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.bkys = bkys;
        this.bkysbl = bkysbl;
        this.dz = dz;
        this.dzbl = dzbl;
        this.zz = zz;
        this.zzbl = zzbl;
        this.gzyx = gzyx;
        this.gzyxbl = gzyxbl;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "bkys", precision = 18, scale = 0)
    public Long getBkys()
    {
        return this.bkys;
    }

    public void setBkys( Long bkys )
    {
        this.bkys = bkys;
    }

    @Column(name = "bkysbl", precision = 18, scale = 4)
    public BigDecimal getBkysbl()
    {
        return this.bkysbl;
    }

    public void setBkysbl( BigDecimal bkysbl )
    {
        this.bkysbl = bkysbl;
    }

    @Column(name = "dz", length = 50)
    public String getDz()
    {
        return this.dz;
    }

    public void setDz( String dz )
    {
        this.dz = dz;
    }

    @Column(name = "dzbl", precision = 18, scale = 4)
    public BigDecimal getDzbl()
    {
        return this.dzbl;
    }

    public void setDzbl( BigDecimal dzbl )
    {
        this.dzbl = dzbl;
    }

    @Column(name = "zz", precision = 18, scale = 0)
    public Long getZz()
    {
        return this.zz;
    }

    public void setZz( Long zz )
    {
        this.zz = zz;
    }

    @Column(name = "zzbl", precision = 18, scale = 4)
    public BigDecimal getZzbl()
    {
        return this.zzbl;
    }

    public void setZzbl( BigDecimal zzbl )
    {
        this.zzbl = zzbl;
    }

    @Column(name = "gzyx", precision = 18, scale = 0)
    public Long getGzyx()
    {
        return this.gzyx;
    }

    public void setGzyx( Long gzyx )
    {
        this.gzyx = gzyx;
    }

    @Column(name = "gzyxbl", precision = 18, scale = 4)
    public BigDecimal getGzyxbl()
    {
        return this.gzyxbl;
    }

    public void setGzyxbl( BigDecimal gzyxbl )
    {
        this.gzyxbl = gzyxbl;
    }
}
